/////////////////////////////////////////////////////////////////////////////
// Name:        ANN_App.cpp
// Purpose:     
// Author:      Erwan Le Martelot
// Modified by: 
// Created:     18/04/2007 12:43:59
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "ANN_App.hpp"
#endif

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "ANN_App.hpp"

////@begin XPM images

////@end XPM images

/*!
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( VM3DApp )
////@end implement app

/*!
 * VM3DApp type definition
 */

IMPLEMENT_CLASS( VM3DApp, wxApp )

/*!
 * VM3DApp event table definition
 */

BEGIN_EVENT_TABLE( VM3DApp, wxApp )

////@begin VM3DApp event table entries
////@end VM3DApp event table entries

END_EVENT_TABLE()

/*!
 * Constructor for VM3DApp
 */

VM3DApp::VM3DApp()
{
	Init();
}

/*!
 * Member initialisation 
 */

void VM3DApp::Init()
{
////@begin VM3DApp member initialisation
////@end VM3DApp member initialisation
}
/*!
 * Initialisation for VM3DApp
 */

bool VM3DApp::OnInit()
{    
////@begin VM3DApp initialisation
	// Remove the comment markers above and below this block
	// to make permanent changes to the code.

#if wxUSE_XPM
	wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
	wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
	wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
	wxImage::AddHandler(new wxGIFHandler);
#endif
	MainForm* mainWindow = new MainForm( NULL, ID_MAINFORM );
	mainWindow->Show(true);
////@end VM3DApp initialisation

	return true;
}

/*!
 * Cleanup for VM3DApp
 */
int VM3DApp::OnExit()
{    
////@begin VM3DApp cleanup
	return wxApp::OnExit();
////@end VM3DApp cleanup
}

